package assign1;

/**
 *
 * @author kevin louis
 */
/**set cars class*/
public class Cars {


    private int xPos;
    private int yPos;

   /**cars constructor*/
    public Cars(int x, int y) {
        xPos = x;
        yPos = y;
    }
    /**getter for X position*/
    public int getXPos() {
        return xPos;
    }
    /**setter for X position */
    public void setXPos(int x) {
        xPos = x;
    }
    /**getter for Y position*/
    public int getYPos() {
        return yPos;
    }
    /**setter for Y position*/
    public void setYPos(int y) {
        yPos = y;
    }
}